<script>

</script>
<!--table部分-->
<div class='col-md-12' style='padding-top:10px'>

    
	  
    <table class='table table-hover table-striped table-bordered' id='NBtb'>
        <thead>
            <tr style="background-color: #337ab7;color:#fff">
                <th>产线号</th>
                <th>部件编号</th>
                <th>计划总量</th>
                <th>以配送量</th>
                <th>剩余用量</th>
                <th>以配送占比</th>
                <th>已配送占比</th>
                
            </tr>
        </thead>
        <tbody>
            <?php for($i=0;$i<10;$i++){ if($i<4){ $a=1; }else if($i<7){ $a=2; }else{ $a=3; } ?>
            <tr>
                <td>产线{$a}</td>
                <td><?php echo 20203420+$i ?></td>
                <td>10000</td>
                <td>2600</td>
                <td>260</td>
                <td>26%</td>
                <td>23.4%</td>
                
            </tr>
           
            <?php } ?>
            
        </tbody>
    </table>
   
    
    
</div>



<!--#################-->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal_wancheng" style='display: none' id='wancheng'>
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal" id="myModal_wancheng" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style='padding-top:100px'>
    <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close close_wancheng" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title">缺省配送量：260</h4>
    </div>
      <div class="modal-body">
        <div class="input-group">
          <input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount" value="260">
          <div class="input-group-addon"><i class='glyphicon glyphicon-triangle-top'></i></div>
          <div class="input-group-addon"><i class='glyphicon glyphicon-triangle-bottom'></i></div>
        </div>
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-success close_wancheng" data-dismiss="modal" >确定</button>
        <button type="button" class="btn btn-default close_wancheng" data-dismiss="modal" >关闭</button>
        
      </div>
    </div>
  </div>
</div>

<script>
$(function(){
    $('#changepara').click(function(){
        $('#wancheng').trigger('click');
    })
})
</script>

